#include <iostream>
#include "distributionbase.h"
#include "cauchy.h"
#include "exponential.h"
#include "normal.h"
#include "weibul.h"
#include <QDebug>

int main(int argc, char *argv[])
{
    DistributionBase* ccauchy = new cauchy;
    DistributionBase* cexponential = new exponential;
    DistributionBase* cnormal = new normal;
    DistributionBase* cweibul = new weibul;

    ccauchy->setName("Cauchy");
    ccauchy->setCode("01");

    cexponential->setName("Exponential");
    cexponential->setCode("02");

    cnormal->setName("Normal");
    cnormal->setCode("03");

    cweibul->setName("Weibul");
    cweibul->setCode("04");

    qDebug() << ccauchy->getCode()
             << ccauchy->getName();
    ccauchy->mean();
    ccauchy->variance();

    qDebug() << cexponential->getCode()
             << cexponential->getName();
    cexponential->mean();
    cexponential->variance();

    qDebug() << cnormal->getCode()
             << cnormal->getName();
    cnormal->mean();
    cnormal->variance();

    qDebug() << cweibul->getCode()
             << cweibul->getName();
    cweibul->mean();
    cweibul->variance();

    delete ccauchy;
    delete cexponential;
    delete cnormal;
    delete cweibul;

    return 0;
}
